package com.woniu.apartment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 城市列对象 tb_city
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "City", description = "城市列")
public class City implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 城市主键 */
    @ApiModelProperty("城市主键")
    private Long id;

    /** 城市中文名称 */
    @Excel(name = "城市中文名称")
    @ApiModelProperty("城市中文名称")
    private String cityCname;

    /** 城市英文名称 */
    @Excel(name = "城市英文名称")
    @ApiModelProperty("城市英文名称")
    private String cityEname;

    /** 唯一标识 */
    @Excel(name = "唯一标识")
    @ApiModelProperty("唯一标识")
    private String idstr;

    /** 国家id */
    @Excel(name = "国家id")
    @ApiModelProperty("国家id")
    private Long countryId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCityCname(String cityCname)
    {
        this.cityCname = cityCname;
    }

    public String getCityCname()
    {
        return cityCname;
    }
    public void setCityEname(String cityEname)
    {
        this.cityEname = cityEname;
    }

    public String getCityEname()
    {
        return cityEname;
    }
    public void setIdstr(String idstr)
    {
        this.idstr = idstr;
    }

    public String getIdstr()
    {
        return idstr;
    }
    public void setCountryId(Long countryId)
    {
        this.countryId = countryId;
    }

    public Long getCountryId()
    {
        return countryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cityCname", getCityCname())
            .append("cityEname", getCityEname())
            .append("idstr", getIdstr())
            .append("countryId", getCountryId())
            .toString();
    }
}
